/*
 * @Author       : 邱狮杰
 * @Date         : 2021-09-01 09:52:52
 * @LastEditTime : 2021-09-06 17:08:24
 * @FilePath     : /smallnewhope/src/hooks/go.ts
 * @Description  :
 */
import { useRouter, RouteLocationRaw } from "vue-router";

export function useGo() {
  const router = useRouter();
  function run(params: RouteLocationRaw) {
    router.replace(params);
  }
  return [run];
}
